﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollFrame, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollFrame, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("SetVerticalScroll", [=[Sets the scroll frame's vertical scroll position]=], [=[SetVerticalScroll(scroll)]=])
	_DB:AddCodeHelp("GetScrollChild", [=[Returns the frame scrolled by the scroll frame]=], [=[GetScrollChild()]=])
	_DB:AddCodeHelp("GetHorizontalScroll", [=[Returns the scroll frame's current horizontal scroll position]=], [=[GetHorizontalScroll()]=])
	_DB:AddCodeHelp("SetHorizontalScroll", [=[Sets the scroll frame's horizontal scroll position]=], [=[SetHorizontalScroll(scroll)]=])
	_DB:AddCodeHelp("GetVerticalScrollRange", [=[Returns the scroll frame's maximum vertical (bottom) scroll position]=], [=[GetVerticalScrollRange()]=])
	_DB:AddCodeHelp("GetHorizontalScrollRange", [=[Returns the scroll frame's maximum horizontal (rightmost) scroll position]=], [=[GetHorizontalScrollRange()]=])
	_DB:AddCodeHelp("GetVerticalScroll", [=[Returns the scroll frame's current vertical scroll position]=], [=[GetVerticalScroll()]=])
	_DB:AddCodeHelp("SetScrollChild", [=[Sets the scroll child for the scroll frame]=], [=[SetScrollChild(frame)]=])
	_DB:AddCodeHelp("UpdateScrollChildRect", [=[Updates the position of the scroll frame's child]=], [=[UpdateScrollChildRect()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.ScrollFrame, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))

	_DB:AddCodeHelp("VerticalScroll", [[the scroll frame's vertical scroll position]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("HorizontalScroll", [[the scroll frame's current horizontal scroll position]], IGAS:GetPropertyType("number"))
end
